//
//  HeakthKnowledgeClassViewCell.m
//  LoveHealth
//
//  Created by 陈永坤 on 14-9-18.
//  Copyright (c) 2014年 lanou. All rights reserved.
//

#import "HeakthKnowledgeClassViewCell.h"

@implementation HeakthKnowledgeClassViewCell

- (void)dealloc
{
    _showImageView = nil;
    _showLabel  = nil;
    [super dealloc];
}
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        [self setupSubview];
    }
    return self;
}

- (void)setupSubview
{
    CGRect frame = self.contentView.bounds;
    _showImageView = [[UIImageView alloc]initWithFrame:CGRectMake((frame.size.width-64)/2, (frame.size.width-64-20)/2, 64, 64)];
    //_showImageView.backgroundColor = [UIColor cyanColor];
    [self.contentView addSubview:_showImageView];
    
    _showLabel = [[UILabel alloc] initWithFrame:CGRectMake((frame.size.width-64)/2, _showImageView.frame.origin.y+_showImageView.frame.size.height, 64, 20)];
    //_showLabel.backgroundColor = [UIColor orangeColor];
    _showLabel.textAlignment = NSTextAlignmentCenter;
    _showLabel.font = [UIFont systemFontOfSize:16.0];
    [self.contentView addSubview:_showLabel];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
